package com.todo.delicacy.iface.backend.request;

import com.todo.common.common.entity.CurrentStaff;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author zhangwenxiang
 * @date 2024/3/5 19:54
 * @description
 */
@Data
@Schema(title = "新增饭店信息入参", description = "新增饭店信息入参")
public class InsertRestaurantInfoReq {

private CurrentStaff _staff;

    /**
     * 餐饮poi
     */
    @Schema(title = "餐饮poi", description = "餐饮poi")
    private Long storePoiId;
    /**
     * 名称
     */
    @Schema(title = "名称", description = "名称")
    private String name;
    /**
     * 介绍
     */
    @Schema(title = "介绍", description = "介绍")
    private String desc;
    /**
     * 餐馆类型
     */
    @Schema(title = "餐馆类型", description = "餐馆类型")
    private Integer restaurantType;

    /**
     * 省份
     */
    @Schema(title = "省份", description = "省份")
    private String province;
    /**
     * 城市
     */
    @Schema(title = "城市", description = "城市")
    private String city;
    /**
     * 人均消费
     */
    @Schema(title = "人均消费", description = "人均消费")
    private BigDecimal moneyCost;
    /**
     * 综合评分
     */
    @Schema(title = "综合评分", description = "综合评分")
    private Integer score;
    /**
     * 主图
     */
    @Schema(title = "主图", description = "主图")
    private String mainImg;
    /**
     * 营业时间
     */
    @Schema(title = "营业时间", description = "营业时间")
    private String businessTime;
    /**
     * 联系方式
     */
    @Schema(title = "联系方式", description = "联系方式")
    private String contactInfo;
    /**
     * 是否营业
     * {@link com.todo.backend.common.enums.EnableTypeEnum}
     */
    @Schema(title = "是否营业", description = "是否营业")
    private Integer isOpen;
    /**
     * 图片列表
     */
    @Schema(title = "图片列表", description = "图片列表")
    private List<String> imgList;

    public boolean baseCheck() {
        if (storePoiId == null || name == null || desc == null || restaurantType == null || province == null || city == null || moneyCost == null || score == null || mainImg == null || businessTime == null  || isOpen == null){
            return false;
        }
        return true;
    }
}
